<?xml version="1.0"?>

<scene>
  <Group>

    <!-- red sphere -->
    <Sphere>
      <position>185 90 170</position>
      <radius>90</radius>
      <numTheta>50</numTheta>
      <numPhi>50</numPhi>
      <material>
        <code>"MetallicPaint"</code>
        <parameters>
          <float name="eta">1.45</float>
          <float3 name="shadeColor">0.5 0.0 0.0</float3>
        </parameters>
      </material>
    </Sphere>

    <!-- green sphere -->
    <Sphere>
      <position>394 90 351</position>
      <radius>90</radius>
      <numTheta>50</numTheta>
      <numPhi>50</numPhi>
      <material>
        <code>"MetallicPaint"</code>
        <parameters>
          <float name="eta">1.45</float>
          <float3 name="shadeColor">0.0 0.5 0.0</float3>
        </parameters>
      </material>
    </Sphere>

    <!-- ground -->
    <TriangleMesh>
      <positions>
        552.8 0.0 0.0 
        0.0 0.0 0.0
        0.0 0.0 559.2
        549.6 0.0 559.2
      </positions>
      <normals></normals>
      <texcoords></texcoords>
      <triangles>
        0 1 2
        0 2 3
      </triangles>
      <material>
        <code>"Matte"</code>
        <parameters>
          <float3 name="reflectance">0.5 0.5 0.5</float3>
        </parameters>
      </material>
    </TriangleMesh>

    <!-- ceiling -->
    <TriangleMesh>
      <positions>
        556.0 548.8 0.0
        556.0 548.8 559.2
        0.0 548.8 559.2
        0.0 548.8 0.0
      </positions>
      <normals></normals>
      <texcoords></texcoords>
      <triangles>
        0 1 2
        0 2 3
      </triangles>
      <material>
        <code>"Matte"</code>
        <parameters>
          <float3 name="reflectance">0.5 0.5 0.5</float3>
        </parameters>
      </material>
    </TriangleMesh>

    <!-- back wall -->
    <TriangleMesh>
      <positions>
        549.6   0.0 559.2
        0.0   0.0 559.2
        0.0 548.8 559.2
        556.0 548.8 559.2
      </positions>
      <normals></normals>
      <texcoords></texcoords>
      <triangles>
        0 1 2
        0 2 3
      </triangles>
      <material>
        <code>"Matte"</code>
        <parameters>
          <float3 name="reflectance">0.5 0.5 0.5</float3>
        </parameters>
      </material>
    </TriangleMesh>

    <!-- green wall -->
    <TriangleMesh>
      <positions>
        0.0   0.0 559.2
        0.0   0.0   0.0
        0.0 548.8   0.0
        0.0 548.8 559.2
      </positions>
      <normals></normals>
      <texcoords></texcoords>
      <triangles>
        0 1 2
        0 2 3
      </triangles>
      <material>
        <code>"Matte"</code>
        <parameters>
          <float3 name="reflectance">0.0 0.5 0.0</float3>
        </parameters>
      </material>
    </TriangleMesh>

    <!-- red wall -->
    <TriangleMesh>
      <positions>
        552.8   0.0   0.0
        549.6   0.0 559.2
        556.0 548.8 559.2
        556.0 548.8   0.0
      </positions>
      <normals></normals>
      <texcoords></texcoords>
      <triangles>
        0 1 2
        0 2 3
      </triangles>
      <material>
        <code>"Matte"</code>
        <parameters>
          <float3 name="reflectance">0.5 0.0 0.0</float3>
        </parameters>
      </material>
    </TriangleMesh>

    <!-- light -->
   <QuadLight>
      <AffineSpace>
        130   0   0 213.0
          0   0   1 548.77
          0 105   0 227.0
      </AffineSpace>
      <L>100 100 90</L>
    </QuadLight>

<!--  <SpotLight>
    <AffineSpace>
      1 0  0 213
      0 0 -1 508.77
      0 1  0 227
    </AffineSpace>
    <I>5000000 5000000 5000000</I>
    <angleMin>10</angleMin>
    <angleMax>30</angleMax>
  </SpotLight> -->

  </Group>
</scene>
